package com.sesxh.project.knowledge.biz.model;
import com.sesxh.frame.dao.IBaseModel;
public class Knowledge extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public Knowledge() {}
	public Knowledge(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 

	@javax.validation.constraints.NotNull(message="所属分类不能为空")
	  private java.lang.Long cateId;
	@javax.validation.constraints.NotNull(message="作者不能为空")
	  private java.lang.Long userId;
	@org.hibernate.validator.constraints.Length(min=0,max=50,message="用户名长度不能大于50")
	  private java.lang.String account;
	@org.hibernate.validator.constraints.Length(min=0,max=80,message="姓名长度不能大于80")
	  private java.lang.String perName;
	@org.hibernate.validator.constraints.Length(min=0,max=60,message="昵称长度不能大于60")
	  private java.lang.String nickName;
	@org.hibernate.validator.constraints.Length(min=0,max=50,message="工号长度不能大于50")
	  private java.lang.String empNo;
	  private java.util.Date createTime;
	  private java.util.Date updateTime;
	  private java.lang.Byte status;
	  private java.lang.Integer commentnum;
	  private java.lang.Integer favoritenum;
	@org.hibernate.validator.constraints.Length(min=0,max=2147483647,message="内容长度不能大于2,147,483,647")
	  private java.lang.String content;
	@org.hibernate.validator.constraints.Length(min=0,max=255,message="内容标题长度不能大于255")
	  private java.lang.String title;
	
	//<-------------------------------------------->
	public Knowledge setCateId(java.lang.Long cateId){
	 this.cateId=cateId;
	 return this;
	}
	public java.lang.Long getCateId(){
		return this.cateId;
	}
	public Knowledge setUserId(java.lang.Long userId){
	 this.userId=userId;
	 return this;
	}
	public java.lang.Long getUserId(){
		return this.userId;
	}
	public Knowledge setAccount(java.lang.String account){
		this.account=account==null?null:account.trim();
	 return this;
	}
	public java.lang.String getAccount(){
		return this.account;
	}
	public Knowledge setPerName(java.lang.String perName){
		this.perName=perName==null?null:perName.trim();
	 return this;
	}
	public java.lang.String getPerName(){
		return this.perName;
	}
	public Knowledge setNickName(java.lang.String nickName){
		this.nickName=nickName==null?null:nickName.trim();
	 return this;
	}
	public java.lang.String getNickName(){
		return this.nickName;
	}
	public Knowledge setEmpNo(java.lang.String empNo){
		this.empNo=empNo==null?null:empNo.trim();
	 return this;
	}
	public java.lang.String getEmpNo(){
		return this.empNo;
	}
	public Knowledge setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public Knowledge setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public Knowledge setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public Knowledge setCommentnum(java.lang.Integer commentnum){
	 this.commentnum=commentnum;
	 return this;
	}
	public java.lang.Integer getCommentnum(){
		return this.commentnum;
	}
	public Knowledge setFavoritenum(java.lang.Integer favoritenum){
	 this.favoritenum=favoritenum;
	 return this;
	}
	public java.lang.Integer getFavoritenum(){
		return this.favoritenum;
	}
	public Knowledge setContent(java.lang.String content){
		this.content=content==null?null:content.trim();
	 return this;
	}
	public java.lang.String getContent(){
		return this.content;
	}
	public java.lang.String getTitle() {
		return title;
	}
	public void setTitle(java.lang.String title) {
		this.title = title;
	}

}
